﻿

using System.Windows;

namespace StorageApp
{
   public static class PropertyHelper
    {
        public static readonly DependencyProperty CustomPropertyProperty =
        DependencyProperty.RegisterAttached("CustomProperty", typeof(string), typeof(PropertyHelper), new PropertyMetadata(null));

        public static void SetProperty(System.Windows.Controls.Control element,string value)
        { 
            element.SetValue(CustomPropertyProperty, value);
        }

        public static string GetProperty(System.Windows.Controls.Control element)
        {
            return (string)element.GetValue(CustomPropertyProperty);
        }
    }
}
